package e2q.portal.web.userInfo.fileImport.form;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;

import org.springframework.web.multipart.MultipartFile;

import e2q.portal.web.userInfo.fileImport.bean.UpPersonDirBean;

/**
 * UserDataImportInfo entity.
 * 
 */
@Entity
public class UserDataImportInfoForm {

	// Fields
	private MultipartFile file;

	private String fileName;

	private String fileType;

	private List<UpPersonDirBean> upPersonDirBeanList;

	private String errorMsg;

	byte[] fileBuffer;

	// Constructors

	/** default constructor */
	public UserDataImportInfoForm() {
	}

	/** full constructor */
	public UserDataImportInfoForm(String fileName, String fileType,
			List<UpPersonDirBean> upPersonDirBeanList, String errorMsg) {
		this.fileName = fileName;
		this.fileType = fileType;
		this.upPersonDirBeanList = upPersonDirBeanList;
		this.errorMsg = errorMsg;
	}

	// Property accessors
	public String getFileName() {
		return this.fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	@Column(name = "fileType")
	public String getFileType() {
		return this.fileType;
	}

	public void setFileType(String fileType) {
		this.fileType = fileType;
	}

	public List<UpPersonDirBean> getUpPersonDirBeanList() {
		return this.upPersonDirBeanList;
	}

	public void setUpPersonDirBeanList(List<UpPersonDirBean> upPersonDirBeanList) {
		this.upPersonDirBeanList = upPersonDirBeanList;
	}

	public String getErrorMsg() {
		return this.errorMsg;
	}

	public void setErrorMsg(String errorMsg) {
		this.errorMsg = errorMsg;
	}

	public MultipartFile getFile() {
		return file;
	}

	public void setFile(MultipartFile file) {
		this.file = file;
	}

	public byte[] getFileBuffer() {
		return fileBuffer;
	}

	public void setFileBuffer(byte[] fileBuffer) {
		this.fileBuffer = fileBuffer;
	}
}